package com.felix.pattern.proxy;

/**
 * CglibProxyTest
 *
 * @author xuejinhua
 * @date 2018/10/30 18:01
 */
public class CglibProxyTest {

    public static void main(String[] args) {
        BuyHouseImpl buyHouse = new BuyHouseImpl();
        CglibProxy cglibProxy = new CglibProxy();
        BuyHouseImpl buyHouseCglibProxy = (BuyHouseImpl) cglibProxy.getInstance(buyHouse);
        buyHouseCglibProxy.buyHouse();
    }
}
